package com.dj.mingkong.admin.biz.controller.system.vo.request;

import jakarta.validation.constraints.*;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 角色VO
 *
 * @author zenglonghui
 * @date: 2022/8/15 13:54
 */
@Data
@Accessors(chain = true)
public class RoleUpdateVo implements Serializable {
    /**
     * 主键ID
     */
    @NotNull(message = "id can not be null")
    private Long id;

    /**
     * 角色名称
     */
    @NotBlank(message = "name can not be blank")
    @Size(min = 1, max = 18, message = "name invalid")
    private String name;

    /**
     * 角色code
     */
    @NotBlank(message = "code can not be blank")
    @Size(min =1, max = 48, message = "code invalid")
    private String code;

    /**
     * 角色类型, MAIN/SIDE',
     */
    @Size(min =1, max = 10, message = "type invalid")
    private String type;

    /**
     * 备注
     */
    @Size(max = 240, message = "remark invalid")
    private String remark;

    /**
     * 状态 0失效 1生效
     */
    @Max(value = 1, message = "status invalid")
    @Min(value = 0, message = "status invalid")
    private Integer status;

}
